package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 行政区划对象 td_area
 * 
 * @author ruoyi
 * @date 2025-09-11
 */
public class TdArea extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private String id;

    /** 区域名称 */
    @Excel(name = "区域名称")
    private String name;

    /** 区域编码 */
    @Excel(name = "区域编码")
    private String code;

    /** 父级id */
    @Excel(name = "父级id")
    private String parentId;

    /** 父级id列表，不包含自己的id，物化路径，一级使用“/” ，例：/id1/id2/id3/  。 避免查询的时候递归和反递归 */
    @Excel(name = "父级id列表，不包含自己的id，物化路径，一级使用“/” ，例：/id1/id2/id3/  。 避免查询的时候递归和反递归")
    private String parentIds;

    /** 助记码,一般为拼音简拼，如昆明市 → kms */
    @Excel(name = "助记码,一般为拼音简拼，如昆明市 → kms")
    private String helpCode;

    /** 是否启用:1=启用,0-未启用 */
    @Excel(name = "是否启用:1=启用,0-未启用")
    private Long enabled;

    /** 范围 */
    @Excel(name = "范围")
    private List<List<BigDecimal>> polygonPoints;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setParentId(String parentId) 
    {
        this.parentId = parentId;
    }

    public String getParentId() 
    {
        return parentId;
    }

    public void setParentIds(String parentIds) 
    {
        this.parentIds = parentIds;
    }

    public String getParentIds() 
    {
        return parentIds;
    }

    public void setHelpCode(String helpCode) 
    {
        this.helpCode = helpCode;
    }

    public String getHelpCode() 
    {
        return helpCode;
    }

    public void setEnabled(Long enabled) 
    {
        this.enabled = enabled;
    }

    public Long getEnabled() 
    {
        return enabled;
    }

    public void setPolygonPoints(List<List<BigDecimal>> polygonPoints) 
    {
        this.polygonPoints = polygonPoints;
    }

    public List<List<BigDecimal>> getPolygonPoints() 
    {
        return polygonPoints;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("name", getName())
            .append("code", getCode())
            .append("parentId", getParentId())
            .append("parentIds", getParentIds())
            .append("helpCode", getHelpCode())
            .append("enabled", getEnabled())
            .append("polygonPoints", getPolygonPoints())
            .toString();
    }
}
